sync.Mutex.state (field)
21 uses
sync (current package)
mutex.go#L35: state int32
mutex.go#L83: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L99: old := m.state
mutex.go#L107: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L122: old := m.state
mutex.go#L131: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L136: old = m.state
mutex.go#L162: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L173: old = m.state
mutex.go#L191: atomic.AddInt32(&m.state, delta)
mutex.go#L197: old = m.state
mutex.go#L214: _ = m.state
mutex.go#L219: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L245: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L249: old = m.state
rwmutex.go#L66: _ = rw.w.state
rwmutex.go#L86: _ = rw.w.state
rwmutex.go#L113: _ = rw.w.state
rwmutex.go#L143: _ = rw.w.state
rwmutex.go#L168: _ = rw.w.state
rwmutex.go#L200: _ = rw.w.state
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |